package com.mq.provider.controller;

import com.mq.provider.service.ProviderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.UUID;

/**
 * @Author：Administrator
 * @Date：2022/7/24/0024 12:11
 * @Versiion：1.0
 */
@RestController
@Slf4j
public class ProviderController {

    @Resource
    private ProviderService providerService;


    @GetMapping("/send")
    public boolean msgSend(){
        return providerService.send(UUID.randomUUID().toString());
    }
}
